﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.UI.DataVisualization.Charting;
using WinnerCMS.BLL;
using WinnerCMS.Common;
using WinnerCMS.Model;

#endregion

namespace WinnerCMS.WebUI.Controllers
{
    public class FavoriteController : ApiController
    {
        public Result FavoriteIt(Favorite model)
        {
            model.Id = 0;

            model.UserId = UserManage.Current.UserID;

            return new FavoriteManage().Add(model);
        }
    }
}